const { DataTypes } = require('../utils/sequelize');

const Notice = {
  name: "Notice",
  data: {
    id: {
      type: DataTypes.NUMBER,
      allowNull: false,       //是否能为空
      primaryKey: true,       //主键
      autoIncrement: true
    },
    title: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    content: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    img: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    create: {
      type: DataTypes.STRING,
      allowNull: false,
    }
  },
  options: {
      tableName: 'notice_tb'
  }
}
module.exports = Notice